Skip to content

docs(id): benchmark regression gates decision record (#5897) - #7860

Merged
dezren39 merged 1 commit into
mainfrom
queue/13642-5897-benchmark-regression-gates
Nov 14, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/13642-5897-benchmark-regression-gates

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add the id: design: benchmark regression gates (from #5685) #5897 decision record for per-metric regression budgets, paired-run noise handling, reviewed waivers, and baseline re-versioning.
  • Define JSONL result states/completeness and a durable result archive with retention.
  • Add the record to both documentation indexes.

Evidence and boundaries

Checks

  • git diff --check — pass.
  • Python local-link and both index-entry checks — pass.
  • Markdown linter unavailable; no repository Markdown lint target found.
  • Docs-only; no benchmark run.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Documentation
    • Added a design record outlining benchmark regression verdicts, metric budgets, waiver and re-baselining rules, and long-term retention of completed results.
    • Updated documentation indexes to include the new record.

@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 23:55
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request adds a decision record for benchmark regression gates. It documents comparison requirements, metric verdicts, waivers, baseline updates, and result retention. It also adds the record to two documentation indexes.

Changes: Benchmark regression gates

Layer / File(s) Summary
Comparison and verdict rules
doc/2026-11-08T23-45-30Z_design_id5897_regression_gates/2026-11-08T23-45-30Z_design_id5897_regression_gates.md, doc/README.md, planning/architecture/README.md
The decision record defines comparison identity, metric budgets, paired-run sampling and verdicts, measurement states, and programme boundaries. It states that throughput and p95 latency are initially blocking. The documentation indexes link to the record.
Waivers and baseline updates
doc/2026-11-08T23-45-30Z_design_id5897_regression_gates/2026-11-08T23-45-30Z_design_id5897_regression_gates.md
The record defines waiver scope, approval, and expiry rules. It also specifies reviewed, versioned baseline updates.
Run archive
doc/2026-11-08T23-45-30Z_design_id5897_regression_gates/2026-11-08T23-45-30Z_design_id5897_regression_gates.md
The record designates monthly GitHub Releases for completed run bundles and accepted baseline versions. It specifies that archive-write failure leaves a run incomplete.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related issues

  • developing-today/code#5897 — The decision record covers the issue’s requested design topics, but the supplied context says the pull request does not close the issue.
Merge Risk: Low · up to 077b8

This PR adds a design record for benchmark regression gates and links it from two indexes. It changes no runtime behavior. The record should say how a measured cell with a missing blocking metric is reported, so a future gate cannot pass it silently. This is a small wording fix to make before or soon after merge.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T22:13:22.906405Z
We couldn’t complete this review. Comment @codex review to try again.
077b882 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d58d68d21

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- rationale, expected user impact, mitigation or follow-up, author, and a non-author maintainer approver;
- expiry: the PR's merge/close or 30 calendar days from approval, whichever comes first.

The approver must explicitly accept the stated trade-off; the PR author cannot approve their own waiver. A waiver applies only to the named cells and tested change. It does not suppress later comparisons or carry to a new head SHA. Store the record alongside the PR in a machine-readable waiver file under `pkgs/id/benches/waivers/`, and link it in the PR description and result bundle. If the regression is to become the new expected performance, use the re-baselining procedure instead of renewing the waiver.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid binding a committed waiver to its own head SHA

For a PR with a measured blocking regression, committing the required waiver file changes the head SHA that the waiver must identify exactly (line 54). The rule that a waiver cannot carry to a new head SHA then invalidates it; updating the file to name the new head changes that SHA again. Consequently, the documented process cannot produce a valid committed waiver for the PR being approved. Store the approval outside the tested commit, or explicitly define how waiver-only commits preserve the tested change's identity.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 077b882 (queue task 17283, lane code-c). The waiver section now binds the waiver to the tested commit (the exact head SHA at measurement), not the branch head at merge time. A waiver-only commit — a commit whose entire diff is the addition or correction of that PR's own waiver file under pkgs/id/benches/waivers/ — explicitly preserves validity, since the tested tree is unchanged outside the waiver record itself. Any other post-approval change invalidates the waiver and requires fresh measurement and approval. The approver's acceptance is additionally recorded outside the tested tree, as a PR review or comment naming the tested commit SHA. Thank you — the self-invalidation loop is closed.

Rebased onto current main by queue task 17283 (lane code-c): README index conflicts union-resolved. Codex P2 finding on this PR fixed in the same pass: a committed waiver naming the exact head SHA invalidated itself, because committing the waiver file changes that SHA. The waiver now binds to the tested commit; a waiver-only commit (diff limited to the PR own waiver file) preserves validity, any other post-approval change invalidates it, and the approver acceptance is also recorded outside the tested tree as a PR review/comment naming the tested SHA.
@dezren39
dezren39 force-pushed the queue/13642-5897-benchmark-regression-gates branch from 4d58d68 to 077b882 Compare November 14, 2026 22:13
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

state: picked-up
task: 17283
lane: code-c
worker: repo-worker-code

Shepherding PR #7860 (docs(id): benchmark regression gates decision record, issue #5897) to a terminal outcome. Fresh revalidation: PR #7860 is OPEN, no hard-stop labels. One Codex P2 finding existed and is FIXED in the rebase (see the reply on its thread): the waiver process bound a committed waiver to its own head SHA, which committing the waiver invalidates; the record now binds the waiver to the tested commit, defines waiver-only commits as validity-preserving, and records approver acceptance outside the tested tree. Branch rebased onto current main (README index conflicts union-resolved), head 077b882. The old head's failing checks (scripts-test, fleet-search parity) are pre-existing and unrelated to this docs-only change. Next: final pre-merge recheck, then merge.

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state work/assigned Queue worker lifecycle state status/in-progress Queue worker lifecycle state labels Nov 14, 2026
@dezren39
dezren39 merged commit ef1f6b7 into main Nov 14, 2026
1 of 2 checks passed
@dezren39
dezren39 deleted the queue/13642-5897-benchmark-regression-gates branch November 14, 2026 22:16
@dezren39

Copy link
Copy Markdown
Member Author

state: done
task: 17283
lane: code-c
worker: repo-worker-code

PR #7860 is MERGED. Merge commit ef1f6b7 (2026-11-14T22:16:01Z).

What was done this shift: rebased the branch onto current main in laptop worktree ~/git/fleet/queue-17283-7860 (README index conflicts union-resolved; head 077b882). The one Codex P2 finding was fixed in the record itself and dispositioned on its thread (reply 4575871880): a committed waiver naming the exact head SHA invalidated itself, so the waiver now binds to the tested commit, waiver-only commits preserve validity, any other post-approval change invalidates it, and approver acceptance is also recorded outside the tested tree. Clean merge against latest main verified with git merge-tree (exit 0) and GitHub mergeable=true immediately before merging; no failing/pending checks attributable to this docs-only change (the old head's scripts-test / fleet-search parity failures are pre-existing and unrelated).

Issue #5897 stays open: this PR is its decision record; implementation and CI tiering are follow-on work per the record.

@dezren39 dezren39 removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant